package com.spring.config.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: SpringController
 * Description:
 * Date: 2017/5/8 20:20
 *
 * @author SAM SHO
 * @version V1.0
 */
@Controller
public class WebController {

    @RequestMapping("web")
    public String test(ModelMap modelMap) {

        modelMap.addAttribute("title", "thymeleaf");
        modelMap.addAttribute("url", "http://blog.csdn.net/chwshuang/article/details/52182540#");
        modelMap.addAttribute("blog", "参考");
        return "test";
    }


}
